package com.example.mq.rabbit.annotation.controller;

import com.example.mq.rabbit.annotation.fanout.producer.Demo1Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class DemoController {
    @Autowired
    private Demo1Producer producer1;

    @RequestMapping("send1")
    public String send1(String message) {
        this.producer1.send1(message);
        return "send success";
    }
}
